/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package ac.lib.data;

import java.util.Map;

/**
 *
 * @author ismail
 */
public class arrays {

    public static boolean search(int[] array, int number) {
        boolean r = false;
        for (int i = 0; i < array.length; i++) {
            if (array[ i] == number) {
                r = true;
                break;
            }
        }

        return r;
    }

    public static boolean search(String[] array, String value) {
        boolean r = false;
        for (int i = 0; i < array.length; i++) {
            if (array[ i].equalsIgnoreCase(value)) {
                r = true;
                break;
            }
        }

        return r;
    }

}
